﻿<%@ Page Title="" Language="C#" MasterPageFile="Miembros.Master" AutoEventWireup="true" CodeBehind="FileSystemElements.aspx.cs" Inherits="UI.FileSystemElements" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Georgia" Font-Size="Larger"
            Text="Manejador de FileSystemElements"></asp:Label><br />
        <br />
        <table id="Tabla_contenedor" ><tr id="Fila_contenedor" ><td id="Celda_Agregar"><div style="height:400px;overflow:auto;width:300;vertical-align:top;border-right-style:groove">
        <asp:Label ID="currentPathLabel" runat="server" Font-Names="Arial" Font-Size="Small"></asp:Label>
        <asp:TextBox ID="TextBox_path" runat="server"></asp:TextBox>
        <asp:Button ID="Button_path" runat="server" Text="Ver" 
            onclick="Button_path_Click" />
        <br />
        <asp:DataList ID="pathDataList" runat="server" Font-Names="Arial" Font-Size="Medium" RepeatDirection="Horizontal" OnItemDataBound="pathDataList_ItemDataBound">
            <ItemTemplate>
                <asp:LinkButton ID="pathLinkButton" runat="server" CommandName="Directory" OnClick="pathLinkButton_Click"></asp:LinkButton>
            </ItemTemplate>
            <SeparatorTemplate>
               >
            </SeparatorTemplate>
        </asp:DataList>
        <br />
        
        <asp:GridView ID="fileSystemInfoGridView" runat="server" AutoGenerateColumns="False" Font-Names="Arial" Font-Size="Small" OnRowDataBound="fileSystemInfoGridView_RowDataBound" DataKeyNames="Name" OnRowCommand="fileSystemInfoGridView_RowCommand"  CellPadding="4" ForeColor="#333333" GridLines="None">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="fileSystemTypeCheck" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton ID="fileSystemTypeImageButton" runat="server" AlternateText="Select" PostBackUrl="~/Miembros/FileSystemElements.aspx"  />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nombre">
                    <ItemTemplate>
                        <asp:Label ID="nameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha Creacion">
                    <ItemTemplate>
                        <asp:Label ID="creationTimeLabel" runat="server" Text='<%# Bind("CreationTime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha Modificacion">
                    <ItemTemplate>
                        <asp:Label ID="lastWriteTimeLabel" runat="server" Text='<%# Bind("LastWriteTime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tamaño">
                    <ItemTemplate>
                        <asp:Label ID="fileSizeLabel" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:Label ID="messageLabel" runat="server"></asp:Label></div>

    <asp:Button ID="ButtonAgregar" runat="server" Text="Agregar" 
        onclick="ButtonAgregar_Click" />
        </div>
        </td>
        <td>
        <div style="height:400px;overflow:auto;width:300;vertical-align:top"> 
            <asp:CheckBoxList ID="CheckBoxL_monitoreados" runat="server" 
                DataValueField="Id">
            </asp:CheckBoxList>
            </div>
            <asp:Button ID="Button_borrar" runat="server" Text="Borrar" 
                onclick="Button_borrar_Click" />
        </td>
        </tr></table>
</asp:Content>
